My first 2 Scripting Games commentaries are online now
My first 2 Scripting Games commentaries are online now
am 20.02.2008 19:07:54 von Jan Dubois
Feel free to check them out, even if you are not taking part in
the Games, and let me know what you think:
http://www.microsoft.com/technet/scriptcenter/funzone/games/ games08/experts.mspx
I have solutions for all 10 events, but I haven't written
all the write-ups yet. So any feedback on the style /content
would be welcome. Note that this is the Advanced Perl division,
so I assume readers are familiar with Perl and all the basic
concepts.
Cheers,
-Jan
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: My first 2 Scripting Games commentaries are online now
am 21.02.2008 02:37:53 von Foo JH
Hey Jan, now I know how you look...no guru-beard? I'm disappointed.
Jan Dubois wrote:
> Feel free to check them out, even if you are not taking part in
> the Games, and let me know what you think:
>
> http://www.microsoft.com/technet/scriptcenter/funzone/games/ games08/experts.mspx
>
> I have solutions for all 10 events, but I haven't written
> all the write-ups yet. So any feedback on the style /content
> would be welcome. Note that this is the Advanced Perl division,
> so I assume readers are familiar with Perl and all the basic
> concepts.
>
> Cheers,
> -Jan
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: My first 2 Scripting Games commentaries are online now
am 21.02.2008 02:54:03 von Foo JH
One thing I like about Perl is that you don't have to use the
forward-slash '\' just because you're writing for the Windows platform.
Jan Dubois wrote:
> Feel free to check them out, even if you are not taking part in
> the Games, and let me know what you think:
>
> http://www.microsoft.com/technet/scriptcenter/funzone/games/ games08/experts.mspx
>
> I have solutions for all 10 events, but I haven't written
> all the write-ups yet. So any feedback on the style /content
> would be welcome. Note that this is the Advanced Perl division,
> so I assume readers are familiar with Perl and all the basic
> concepts.
>
> Cheers,
> -Jan
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: My first 2 Scripting Games commentaries are online now
am 21.02.2008 04:11:53 von jwkenne
Foo JH wrote:
> One thing I like about Perl is that you don't have to use the
> forward-slash '\' just because you're writing for the Windows platform.
A) '\' is the backslash; '/' is the forward slash.
B) Actually, '/' works in all languages, and always has. It's just the
Command Prompt that won't accept it, for compatibility with pre-1983
versions of MS-DOS. (I swear I'm not joking!)
--
John W. Kennedy
"Sweet, was Christ crucified to create this chat?"
-- Charles Williams. "Judgement at Chelmsford"
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: My first 2 Scripting Games commentaries are online now
am 21.02.2008 04:42:42 von Foo JH
Yeah I seldom see smilies from Jan, so the fact that he's not (really)
smiling in the photo means my hunch is right: there's no free Coke in
ActiveState.
Where I work, we have more tea bags than we'd ever finish in the next 2
years. We just need more sugar cubes...
Chris Wagner wrote:
> Ooo there's a picture up there? I'm not going to go there now because I
> think it's better for his appearence to remain a mystery. :P
>
> At 09:37 AM 2/21/2008 +0800, Foo JH wrote:
>
>> Hey Jan, now I know how you look...no guru-beard? I'm disappointed.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: My first 2 Scripting Games commentaries are online now
am 21.02.2008 08:01:53 von Jan Dubois
Had I known that you guys are commenting more on my picture than on
my sample code and commentary, then I would have spent more than the
5 minutes to find any old picture with a reasonable background and
crop just a head-shot out of it.
Or maybe I should have sent the picture that was for quite a while
on the ActiveState "people" page:
http://www.activestate.com/_images/photos/jand_w80_h125.jpg
Looks like the image is still there if you know where to find it,
even though the web page looks more corporate now. :)
And yes, no facial hair... Back in the days (December 1999) I was the
only developer at ActiveState without some kind of guru-beard (remember,
I'm an ex-banker), but over time I convinced some others (including the
gsar man) to come clean too. :)
Cheers,
-Jan
On Wed, 20 Feb 2008, Foo JH wrote:
> Yeah I seldom see smilies from Jan, so the fact that he's not (really)
> smiling in the photo means my hunch is right: there's no free Coke in
> ActiveState.
>
> Where I work, we have more tea bags than we'd ever finish in the next
> 2 years. We just need more sugar cubes...
>
> Chris Wagner wrote:
>> Ooo there's a picture up there? I'm not going to go there now because
>> I think it's better for his appearence to remain a mystery. :P
>>
>> At 09:37 AM 2/21/2008 +0800, Foo JH wrote:
>>
>>> Hey Jan, now I know how you look...no guru-beard? I'm disappointed.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: My first 2 Scripting Games commentaries are online now
am 21.02.2008 15:10:42 von Deane.Rothenmaier
This is a multipart message in MIME format.
--===============0403413531==
Content-Type: multipart/alternative;
boundary="=_alternative 004DE86D862573F6_="
This is a multipart message in MIME format.
--=_alternative 004DE86D862573F6_=
Content-Type: text/plain; charset="US-ASCII"
No wizard's-hat neither! Not even a magick wand. Jan, your image is
ruined... P-)
Deane Rothenmaier
Programmer/Analyst
Walgreens Corp.
847-914-5150
Put three grains of sand in a vast cathedral, and the cathedral will be
more closely packed with sand than space is with stars. -- Sir James Jeans
Foo JH
Sent by: perl-win32-users-bounces@listserv.ActiveState.com
02/20/2008 07:37 PM
To
Jan Dubois
cc
perl-win32-users@listserv.ActiveState.com,
activeperl@listserv.ActiveState.com
Subject
Re: My first 2 Scripting Games commentaries are online now
Hey Jan, now I know how you look...no guru-beard? I'm disappointed.
Jan Dubois wrote:
> Feel free to check them out, even if you are not taking part in
> the Games, and let me know what you think:
>
>
http://www.microsoft.com/technet/scriptcenter/funzone/games/ games08/experts.mspx
>
> I have solutions for all 10 events, but I haven't written
> all the write-ups yet. So any feedback on the style /content
> would be welcome. Note that this is the Advanced Perl division,
> so I assume readers are familiar with Perl and all the basic
> concepts.
>
> Cheers,
> -Jan
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--=_alternative 004DE86D862573F6_=
Content-Type: text/html; charset="US-ASCII"
No wizard's-hat neither! Not even a
magick wand. Jan, your image is ruined... P-)
Deane Rothenmaier
Programmer/Analyst
Walgreens Corp.
847-914-5150
Put three grains of sand in a vast cathedral, and the cathedral will be
more closely packed with sand than space is with stars. -- Sir James Jeans
Foo JH <jhfoo-ml@extracktor.com>
Sent by: perl-win32-users-bounces@listserv.ActiveState.com
02/20/2008 07:37 PM
|
To
| Jan Dubois <jand@activestate.com>
|
cc
| perl-win32-users@listserv.ActiveState.com,
activeperl@listserv.ActiveState.com
|
Subject
| Re: My first 2 Scripting Games commentaries
are online now |
|
Hey Jan, now I know how you look...no guru-beard?
I'm disappointed.
Jan Dubois wrote:
> Feel free to check them out, even if you are not taking part in
> the Games, and let me know what you think:
>
> http://www.microsoft.com/technet/scriptcenter/funzone/games/ games08/experts.mspx
>
> I have solutions for all 10 events, but I haven't written
> all the write-ups yet. So any feedback on the style /content
> would be welcome. Note that this is the Advanced Perl division,
> so I assume readers are familiar with Perl and all the basic
> concepts.
>
> Cheers,
> -Jan
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--=_alternative 004DE86D862573F6_=--
--===============0403413531==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0403413531==--
RE: My first 2 Scripting Games commentaries are online now
am 21.02.2008 19:43:14 von Randy Kobes
On Wed, 20 Feb 2008, Jan Dubois wrote:
> Had I known that you guys are commenting more on my picture than on
> my sample code and commentary, then I would have spent more than the
> 5 minutes to find any old picture with a reasonable background and
> crop just a head-shot out of it.
:)
Concerning the code and commentary, these are wonderful
examples of how to take a (seemingly) simple problem, come
up with a solution, and then start to anticipate, and
handle, the various possibilities that might arise,
especially when dealing with user input. Hopefully there's
plans to find a more permanent home for them somewhere?
--
best regards,
Randy Kobes
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: My first 2 Scripting Games commentaries are online now
am 21.02.2008 23:09:35 von Damon Deaman
--===============0775150618==
Content-Type: multipart/alternative;
boundary="_23cd258a-8bf7-47fe-9388-55d2e6aea5a6_"
--_23cd258a-8bf7-47fe-9388-55d2e6aea5a6_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Wow, you code looks much neeter than mine. I broke some rules but it works:
=20
#perl script to pull a word from a phone number Event1 2008 Microsoft Winte=
r Scripting Gamesprint "Please enter a phone number:";my $number =3D=
;my @words=3D();#build hash list of number to letters. NOT SURE WHAT TO DO =
ABOUT 1's AND 0's%numlet =3D ( 2 =3D> [ "A", "B" , "C" ], 3 =
=3D> [ "D", "E", "F" ], 4 =3D> [ "G", "H", "I" ], 5 =3D>=
[ "J", "K" , "L" ], 6 =3D> [ "M", "N" , "O"], 7 =3D> [ "P", =
"Q" , "R" , "S" ], 8 =3D> [ "T", "U" , "V"], 9 =3D> [ "W", "X=
" , "Y" , "Z"], );#open wordlistopen WORDS, 'wordlist.txt' or die "can=
't open wordlist.txt $!";while () {chomp;if (length ($_) ==7) { =
push (@words, $_); }}close WORDS; foreach (@{$numlet{(substr $number,0,-7)=
}}) { push (@1,$_)}
foreach (@{$numlet{(substr $number,1,-6)}}) { push (@2,$_)} foreach=
(@{$numlet{(substr $number,2,-5)}}) { push (@3,$_)} foreach (@{$numlet=
{(substr $number,3,-4)}}) { push (@4,$_)}
foreach (@{$numlet{(substr $number,4,-3)}}) {push (@5,$_)}
foreach (@{$numlet{(substr $number,5,-2)}}) { push (@6,$_)}
foreach (@{$numlet{(substr $number,6,-1)}}) { push (@7,$_)}
foreach $temp (@words) {#mad crazy regexif ($temp =3D~ /[$1[0]|$1[1]|$1[2]|=
$1[3]][$2[0]|$2[1]|$2[2]|$2[3]][$3[0]|$3[1]|$3[2]|$3[3]][$4[ 0]|$4[1]|$4[2]|=
$4[3]][$5[0]|$5[1]|$5[2]|$5[3]][$6[0]|$6[1]|$6[2]|$6[3]][$7[ 0]|$7[1]|$7[2]|=
$7[3]]/i) {print "$temp\n";last;}}
=20
=20
=20
Damon Dearman
=20
> Date: Thu, 21 Feb 2008 12:43:14 -0600> From: randy@theoryx5.uwinnipeg.ca>=
To: jand@activestate.com> Subject: RE: My first 2 Scripting Games commenta=
ries are online now> CC: wagnerc@plebeian.com; activeperl@listserv.ActiveSt=
ate.com; perl-win32-users@listserv.ActiveState.com> > On Wed, 20 Feb 2008, =
Jan Dubois wrote:> > > Had I known that you guys are commenting more on my =
picture than on> > my sample code and commentary, then I would have spent m=
ore than the> > 5 minutes to find any old picture with a reasonable backgro=
und and> > crop just a head-shot out of it.> > :)> > Concerning the code an=
d commentary, these are wonderful> examples of how to take a (seemingly) si=
mple problem, come> up with a solution, and then start to anticipate, and> =
handle, the various possibilities that might arise,> especially when dealin=
g with user input. Hopefully there's> plans to find a more permanent home f=
or them somewhere?> > -- > best regards,> Randy Kobes> ____________________=
___________________________> ActivePerl mailing list> ActivePerl@listserv.A=
ctiveState.com> To unsubscribe: http://listserv.ActiveState.com/mailman/mys=
ubs
____________________________________________________________ _____
Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=3DTXT_TAGHM_Wave2 _sharelife_0120=
08=
--_23cd258a-8bf7-47fe-9388-55d2e6aea5a6_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Wow, you code looks much neeter than mine. I broke some rule=
s but it works:
#perl script to pull a word from a phone number Event1 2008 Microsoft Winte=
r Scripting Games
print "Please enter a phone number:";
my $number =
=3D<STDIN>;
my @words=3D();
#build hash list of number to lette=
rs. NOT SURE WHAT TO DO ABOUT 1's AND 0's
%numlet =3D (
2 =
=3D> [ "A", "B" , "C" ],
3=
=3D> [ "D",=
"E", "F" ],
4 &nbs=
p; =3D> [ "G", "H", "I" ],
5  =
; =3D> [ "J", "K" , "L" ],
6  =
; =3D> [ "M", "N" , "O"],
7 =
=3D> [ "P", "Q" , "R" , "S" ],
8 =
=3D> [ "T", "U" , "V"],
9&=
nbsp; =3D> [ "W", "X" , "Y" , "Z"],<=
BR> );
#open wordlist
open WORDS, 'word=
list.txt' or die "can't open wordlist.txt $!";
while (<WORDS>) {
R>chomp;
if (length ($_) ==7) {
push (@words, $_);
 =
;}
}
close WORDS;
foreach (@{$numlet{(substr $number,0,=
-7)}}) {
push (@1,$_)}
foreach (@{$numlet{(substr $number,1,-6)}}) {
&n=
bsp; push (@2,$_)}
foreach (@{$numlet{(substr $number=
,2,-5)}}) {
push (@3,$_)}
foreach (@{$=
numlet{(substr $number,3,-4)}}) {
push (@4,$_)}
foreach (@{$numlet{(substr $number,4,-3)}}) {
push (@5,$_)}
foreach (@{$numlet{(substr $number,5,-2)}}) {
&n=
bsp; push (@6,$_)}
foreach (@{$numlet{(substr $number,6,-1)}}) {
&n=
bsp; push (@7,$_)}
foreach $temp (@words) {
#mad crazy regex
if ($temp =3D~ /[$1[0]|$1[1=
]|$1[2]|$1[3]][$2[0]|$2[1]|$2[2]|$2[3]][$3[0]|$3[1]|$3[2]|$3 [3]][$4[0]|$4[1=
]|$4[2]|$4[3]][$5[0]|$5[1]|$5[2]|$5[3]][$6[0]|$6[1]|$6[2]|$6 [3]][$7[0]|$7[1=
]|$7[2]|$7[3]]/i) {
print "$temp\n";
last;
}
}
Damon Dearman
> Date: Thu, 21 Feb 2008 12:43:14 -0600
> From: randy@theo=
ryx5.uwinnipeg.ca
> To: jand@activestate.com
> Subject: RE: My =
first 2 Scripting Games commentaries are online now
> CC: wagnerc@ple=
beian.com; activeperl@listserv.ActiveState.com; perl-win32-users@listserv.A=
ctiveState.com
>
> On Wed, 20 Feb 2008, Jan Dubois wrote:
&=
gt;
> > Had I known that you guys are commenting more on my pictu=
re than on
> > my sample code and commentary, then I would have sp=
ent more than the
> > 5 minutes to find any old picture with a rea=
sonable background and
> > crop just a head-shot out of it.
>=
;
> :)
>
> Concerning the code and commentary, these ar=
e wonderful
> examples of how to take a (seemingly) simple problem, c=
ome
> up with a solution, and then start to anticipate, and
> h=
andle, the various possibilities that might arise,
> especially when =
dealing with user input. Hopefully there's
> plans to find a more per=
manent home for them somewhere?
>
> --
> best regards,<=
BR>> Randy Kobes
> _______________________________________________=
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.co=
m
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
Connect and share in new ways with Windows Live.
=3D'http://www.windowslive.com/share.html?ocid=3DTXT_TAGHM_W ave2_sharelife_=
012008' target=3D'_new'>Get it now!
=
--_23cd258a-8bf7-47fe-9388-55d2e6aea5a6_--
--===============0775150618==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0775150618==--
Re: My first 2 Scripting Games commentaries are online now
am 21.02.2008 23:27:15 von bdaoust
Here is what I came up with: comments?
#!/perl
use warnings;
use strict;
my @letters = ( "", "", "abc", "def", "ghi", "jkl", "mno", "prs", "tuv",
"wxy" );
my $reg;
print "Enter phone number: ";
my $number = <>;
chomp $number;
my @numbers = split(//,$number);
foreach my $n (@numbers){
$reg.="[".$letters[$n]."]";
}
open(INFILE,"
worldlist file\n";
while(){
chomp;
if(/^$reg$/io){
print "$_\n";
last;
}
}
close(INFILE);
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: threads and blessed objects...
am 22.02.2008 03:48:36 von Foo JH
I'm not spent more time on this same issue than I should, but you need
to know a few things about threading and Perl:
1. Threads::Queue takes in only scalars
2. If the scalar is a ref to an object instance, you need to share() it
first
3. share()ing is not deep, so you will have to ensure you're sharing the
entire object yourself (if the object is complex and nested).
4. Some objects are not advised to be passed in. Eg. DBI handlers. These
are not thread-safe and they will complain when another thread tries to
use it
The good news is I've only recently hit this problem (earlier this
week), and I managed to pass references to shared (simple) hashes into
the queue. So you know the solution will work.
Wayne Simmons wrote:
> Hi all. I'm working on a serious perl threaded project, and I'm trying to
> use Threads::Queue to pass data between my threads, and now it is telling me
> that I can't use them to pass objects (that is blessed scalars).
>
> Why is that? And what can I do about it?
>
> The exact error I get is:
> Thread 2 terminated abnormally: Invalid value for shared scalar at
> C:/Perl/lib/Thread/Queue.pm line 90.
>
> When I tried to share it, it just told me I couldn't assign the shared
> scalar to the object, so I got the same error but earlier.
>
> Any help, tips, advice is welcomed.
>
> -Wayne Simmons
>
>
>
> --
> Software Engineer
> InterSystems USA, Inc.
> 303-858-1000
>
>
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Who"s got the guru beard?
am 22.02.2008 03:54:15 von Foo JH
This is a multi-part message in MIME format.
--------------000502060801060905010403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Ok now we know Jan is a 'deviant'. It's piqued my interest, so I looked
up Randy as well....
At least one of us has the beard...
Jan Dubois wrote:
>
> And yes, no facial hair... Back in the days (December 1999) I was the
> only developer at ActiveState without some kind of guru-beard (remember,
> I'm an ex-banker), but over time I convinced some others (including the
> gsar man) to come clean too. :)
--------------000502060801060905010403
Content-Type: image/jpeg;
name="kobes-randy.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="kobes-randy.jpg"
/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUAAA/+4ADkFk b2JlAGTAAAAA
Af/bAIQAAgICAgICAgICAgMCAgIDBAMCAgMEBQQEBAQEBQYFBQUFBQUGBgcH CAcHBgkJCgoJ
CQwMDAwMDAwMDAwMDAwMDAEDAwMFBAUJBgYJDQsJCw0PDg4ODg8PDAwMDAwP DwwMDAwMDA8M
DAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAWwBGAwERAAIRAQMR Af/EAJsAAAID
AQEBAAAAAAAAAAAAAAcIBQYJBAIDAQACAwEBAQAAAAAAAAAAAAADBAIFBgEA BxAAAQMCBQMC
BQIEBAcBAAAAAQIDBBEFACESEwYxFAdBIlFhMhUIgUJxUiMWYoIzJPCRobHR NDUXEQABBAED
AwIEBQQDAAAAAAABABECAwQhMRJBURMiBWGhMkLwcYEjFMHRMyThggb/2gAM AwEAAhEDEQA/
AO6NyW5xglVsg2ax6Or0aAytz9HJAeXU/wAcCZZ2uZ+3Ren+X8tloDLnKboW U10oRKcaT86J
aKUj4dMcUzZMBVq532Na467hyC+usRwQhCpEhxSlKV0SmpUST6ACuPcox3UY wnadEJr/AOYL
fEZDtqjicySUqcLm2qvT6TVQy+WK673KMSwV3R7DkWjUshwPyMmxpbbLNrtr qCopTHffWhxx
Nciiump9K4jH3B9WRrP/ADU4fe57Il2f8h+HyENJv7R4yt0/1HlKU+0hR+nW QkqSD6GhHzw5
TmQs0VZf7ZdSj9a5TU+GzMt7yZ0OUgOMy21BaFpUKhQIGYoa4PvslFdWo6kc ZdlPSSszro3H
hxia6URWVOPOD/M62nLEo7oo0io3T7aelMEUUPktvOpeLTDz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vPa/3n2/9w7O6mle29tKd d7+p0rniuobl
9vzUsh+I+r9GZU38h6//AJ7fNvf0bUHc+203NG/7d7c92xqpr0+7VTV7K4sK t1TD/MPz/X+y
QTiu72V30b2nd/3Xb7W5TTlXXns1pu7WdKVyrj2VuPzCtYfUVAQ9O7cNzVXW adnq0f6v7tGV
P44FmN6dlOh2O/yXRG0f2/cv/qaNxnpr7f6/X92OTbyR2+fYqQfgd/kv/9k=
--------------000502060801060905010403
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--------------000502060801060905010403--
Where"s the next 2 script games commentries?
am 22.02.2008 03:56:54 von Foo JH
Looking forward to them...
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: threads and blessed objects...
am 22.02.2008 20:59:10 von Mike Gillis
Wayne Simmons wrote:
> Hi all. I'm working on a serious perl threaded project, and I'm trying to
> use Threads::Queue to pass data between my threads, and now it is telling me
> that I can't use them to pass objects (that is blessed scalars).
>
> Why is that?
Different interpreters (that is, different perl threads) only have access to
the memory tagged as "theirs". Everything that isn't passed as a value (e.g.,
references and objects) belongs to the interpreter it was created in.
> And what can I do about it?
The easy way to get around this is by using something like Storable on all of
your objects, and Thread::Queue::Any takes care of this for you.
http://search.cpan.org/dist/Thread-Queue-Any/
Storable has some limitations, so if you're doing anything particularly clever
you should read its documentation, but it works pretty well for most everyday
tasks.
--
Mike Gillis
Languages Development mikeg@activestate.com
ActiveState Software http://www.activestate.com/languages
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs